From 817ad21addc8b9a345c864883057e2a818f6afdc Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 4 May 2010 11:46:24 +0100 Subject: [PATCH] xl: Remove unused variable verbose in info function Signed-off-by: Yang Hongyang --- tools/libxl/xl_cmdimpl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 27aa04a1e9..2a866178dd 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2713,7 +2713,7 @@ static void output_physinfo(void) return; } -static void info(int verbose) +static void info(void) { output_nodeinfo(); @@ -2728,9 +2728,8 @@ static void info(int verbose) int main_info(int argc, char **argv) { - int opt, verbose; + int opt; - verbose = 0; while ((opt = getopt(argc, argv, "h")) != -1) { switch (opt) { case 'h': @@ -2742,7 +2741,7 @@ int main_info(int argc, char **argv) } } - info(verbose); + info(); exit(0); } -- 2.30.2